from Utils.router import router
from Utils.gy import timeklpk


@router.get('/gy/kldata',tags=['客流车流数据'],summary='实时客流车流')
async def get_kldatas():
    kldata = timeklpk.get_kldata()
    pklist = timeklpk.get_park()
    return {'insum': kldata[0], 'zlsum': kldata[2], 'carin': kldata[3], 'carout': kldata[4],
            'parknull': pklist[1]}
